// Thud - a dynamic object-oriented language
// Copyright (C) 2009,2010 David H. Hovemeyer <david.hovemeyer@gmail.com>

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/*
 * IConstantVisitor.h
 *
 *  Created on: Dec 1, 2009
 *      Author: dhovemey
 */

#ifndef ICONSTANTVISITOR_H_
#define ICONSTANTVISITOR_H_

class ConstantInt32;
class ConstantString;
class ConstantSymbol;
class ConstantClass;
class ConstantBoolean;

/**
 * Visitor for Constants.
 */
class IConstantVisitor {
public:
	/** Constructor. */
	IConstantVisitor();
	/** Destructor. */
	virtual ~IConstantVisitor();

	/**
	 * Visit a ConstantInt32.
	 */
	virtual void visitConstantI32(ConstantInt32 *c) = 0;

	/**
	 * Visit a ConstantString.
	 */
	virtual void visitConstantString(ConstantString *c) = 0;

	/**
	 * Visit a ConstantSymbol.
	 */
	virtual void visitConstantSymbol(ConstantSymbol *c) = 0;

	/**
	 * Visit a ConstantClass.
	 */
	virtual void visitConstantClass(ConstantClass *c) = 0;

	/**
	 * Visit a ConstantBoolean.
	 */
	virtual void visitConstantBoolean(ConstantBoolean *c) = 0;
};

#endif /* ICONSTANTVISITOR_H_ */
